{include file="publics/head"/}


<body class="no-skin">
{include file="publics/header"/}
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    {include file="publics/sidebar"/}
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            {include file="publics/breadcrumbs"/}

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                {include file="publics/set"/}

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal"  id="form" action="{:url('update')}" method="post">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-10">
                                    上级菜单 </label>
                                <input name="id" id="id" value="{$currentmenu.id}" type="hidden">
                                <div class="col-sm-9">
                                    <select id="pid" name="pid" class="rcol-xs-10 col-sm-5">
                                        <option value="0"
                                        {if condition="$currentmenu.pid eq 0"}selected="selected"{/if}
                                        >顶级菜单</option>
                                        {volist name="option" id="v"}
                                            <option value="{$v.id}"
                                            {if condition="$currentmenu.pid eq $v['id']"}selected="selected"{/if}
                                            >{$v['title']}</option>
                                            {volist name="v.children" id="vv"}
                                                <option value="{$vv.id}"
                                                {if condition="$currentmenu.pid eq $vv['id']"}selected="selected"{/if}
                                                >&nbsp;&nbsp;┗━{$vv['title']}</option>
                                            {/volist}
                                        {/volist}
                                    </select>
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
											</span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 菜单名称 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="title" id="title" class="rcol-xs-10 col-sm-5"
                                           value="{$currentmenu.title}">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
											</span>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 链接 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="name" id="name" placeholder="链接，如：Index/index"
                                           class="col-xs-10 col-sm-5" value="{$currentmenu.name}">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
											</span>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    ICON图标 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="icon" id="icon" placeholder="ICON图标"
                                           class="col-xs-10 col-sm-5" value="{$currentmenu.icon}">
                                    <select id="myselect" name="myselect" class="myselect"></select>


                                            <!-- <a href="javascript:;" class="btn btn-success btn-xs" style="margin:5px;" id="select_icon">点击选择图标</a> --> 
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
											</span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 显示状态 </label>
                                <div class="control-label no-padding-left col-sm-1">
                                    <label>
                                        <input name="islink" id="islink"
                                        {if condition="$currentmenu.islink eq 1"}checked="checked"{/if}
                                        value="1" class="ace ace-switch ace-switch-2" type="checkbox" />
                                        <span class="lbl"></span>
                                    </label>
                                </div>
                                <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
										</span>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 排序 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="o" id="o" placeholder="" class="col-xs-10 col-sm-5"
                                           value="{$currentmenu.o}">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">越小越靠前</span>
											</span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 页面提示</label>
                                <div class="col-sm-9">
                                    <textarea name="tips" id="tips" placeholder="页面提示" class="col-xs-10 col-sm-5"
                                              rows="5">{$currentmenu.tips}</textarea>
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
											</span>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info submit" type="button">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    {include file="publics/footer"/}

</div><!-- /.main-container -->

{include file="publics/footerjs"/}
<!-- inline scripts related to this page -->

<!-- icon选择插件begin -->
    <script src="/icon_select/jquery.fonticonpicker.js"></script>
    <link href="/icon_select/css/jquery.fonticonpicker.css" rel="stylesheet" />
    <link href="/icon_select/themes/grey-theme/jquery.fonticonpicker.grey.css" rel="stylesheet" />
    <link href="/icon_select/themes/dark-grey-theme/jquery.fonticonpicker.darkgrey.css" rel="stylesheet" />
    <link href="/icon_select/themes/bootstrap-theme/jquery.fonticonpicker.bootstrap.css" rel="stylesheet" />
    <link href="/icon_select/themes/inverted-theme/jquery.fonticonpicker.inverted.css" rel="stylesheet" />
    <link href="/icon_select/fontello-7275ca86/css/fontello.css" rel="stylesheet" />
<!-- icon选择插件end -->

<script type="text/javascript">
    $(function () {
        var editor = KindEditor.create('textarea[name="tips"]', {
            resizeType: 1,
            allowPreviewEmoticons: false,
            allowImageUpload: false,
            items: [
                'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'emoticons', 'link']
        });
        $(".btn.btn-info").click(function () {
            var title = $("#title").val();
            if (title == '') {
                bootbox.alert({
                    buttons: {
                        ok: {
                            label: '确定',
                            className: 'btn-myStyle'
                        }
                    },
                    message: '菜单名称不能为空。',
                    title: "友情提示",
                });
                return false;
            }

        })
		
        var icon = '{$currentmenu.icon}';
        if(icon !=　''){
			source = [ "{$currentmenu.icon}" , " fa fa-address-book" ,"fa fa-address-book-o" ,"fa fa-address-card" ,"fa fa-address-card-o" ,"fa fa-adjust" ,"fa fa-american-sign-language-interpreting" ,"fa fa-anchor" , "fa fa-archive" ,"fa fa-area-chart" ,"fa fa-arrows" ,"fa fa-arrows-h" ,"fa fa-arrows-v" ,"fa fa-asl-interpreting" ,"fa fa-assistive-listening-systems" ,"fa fa-asterisk" ,"fa fa-at" ,"fa fa-audio-description" ,"fa fa-automobile" ,"fa fa-balance-scale" ,"fa fa-ban" ,"fa fa-bank" ,"fa fa-bar-chart" ,"fa fa-bar-chart-o" ,"fa fa-barcode" ,"fa fa-bars" ,"fa fa-bath" ,"fa fa-bathtub" ,"fa fa-battery" ,"fa fa-battery-0" ,"fa fa-battery-1" ,"fa fa-battery-2" ,"fa fa-battery-3" ,"fa fa-battery-4" ,"fa fa-battery-empty" ,"fa fa-battery-full" ,"fa fa-battery-half" ,"fa fa-battery-quarter" ,"fa fa-battery-three-quarters" ,"fa fa-bed" ,"fa fa-beer" ,"fa fa-bicycle" ,"fa fa-binoculars" ,"fa fa-birthday-cake" ,"fa fa-blind" ,"fa fa-bluetooth" , "fa fa-bluetooth-b" , "fa fa-bolt" ,"fa fa-bomb" , "fa fa-book" ,"fa fa-bookmark" ,"fa fa-bookmark-o" ,"fa fa-braille" ,"fa fa-briefcase" ,"fa fa-bug" ,"fa fa-building" ,"fa fa-building-o" ,"fa fa-bullhorn" ,"fa fa-bullseye" ,"fa fa-bus" ,"fa fa-cab" ,"fa fa-calculator" ,"fa fa-calendar" ,"fa fa-calendar-check-o" ,"fa fa-calendar-minus-o" ,"fa fa-calendar-o" ,"fa fa-calendar-plus-o" ,"fa fa-calendar-times-o" ,"fa fa-camera" ,"fa fa-camera-retro" ,"fa fa-car" ,"fa fa-caret-square-o-down" ,"fa fa-caret-square-o-left" ,"fa fa-caret-square-o-right" ,"fa fa-caret-square-o-up" ,"fa fa-cart-arrow-down" ,"fa fa-cart-plus" ,"fa fa-cc" ,"fa fa-certificate" ,"fa fa-check" ,"fa fa-check-circle" ,"fa fa-check-circle-o" ,"fa fa-check-square" ,"fa fa-check-square-o" ,"fa fa-child" , "fa fa-circle" ,"fa fa-circle-o" ,"fa fa-circle-o-notch" , "fa fa-circle-thin" ,"fa fa-clock-o" ,"fa fa-clone" ,"fa fa-close" ,"fa fa-cloud" ,"fa fa-cloud-download" ,"fa fa-cloud-upload" ,"fa fa-code" ,"fa fa-code-fork" ,"fa fa-coffee" ,"fa fa-cog" ,"fa fa-cogs" ,"fa fa-comment" ,"fa fa-comment-o" ,"fa fa-commenting" ,"fa fa-commenting-o" ,"fa fa-comments" ,"fa fa-comments-o" ,"fa fa-compass" ,"fa fa-copyright" ,"fa fa-creative-commons" ,"fa fa-credit-card" ,"fa fa-credit-card-alt" ,"fa fa-crop" ,"fa fa-crosshairs" , "fa fa-cube" ,"fa fa-cubes" ,"fa fa-cutlery" ,"fa fa-dashboard" ,"fa fa-database" ,"fa fa-deaf" ,"fa fa-deafness" ,"fa fa-desktop" ,"fa fa-diamond" ,"fa fa-dot-circle-o" , "fa fa-file-picture-o" ,"fa fa-file-powerpoint-o" ,"fa fa-file-sound-o" ,"fa fa-file-video-o" ,"fa fa-file-word-o" , "fa fa-file-zip-o" ,"fa fa-film" ,"fa fa-filter" ,"fa fa-fire" ,"fa fa-fire-extinguisher" ,"fa fa-flag" ,"fa fa-flag-checkered" ,"fa fa-flag-o" ,"fa fa-flash" ,"fa fa-flask" ,"fa fa-folder" ,"fa fa-folder-o" ,"fa fa-folder-open" ,"fa fa-folder-open-o" ,"fa fa-frown-o" ,"fa fa-futbol-o" ,"fa fa-gamepad" ,"fa fa-gavel" ,"fa fa-gear" ,"fa fa-gears" ,"fa fa-gift" ,"fa fa-glass" ,"fa fa-globe" ,"fa fa-graduation-cap" ,"fa fa-group" ,"fa fa-hand-grab-o" ,"fa fa-hand-lizard-o" ,"fa fa-hand-paper-o" ,"fa fa-hand-peace-o" ,"fa fa-hand-pointer-o" ,"fa fa-hand-rock-o" ,"fa fa-hand-scissors-o" ,"fa fa-hand-spock-o" ,  "fa fa-hand-stop-o" ,"fa fa-handshake-o" ,"fa fa-hard-of-hearing" ,"fa fa-hashtag" ,"fa fa-hdd-o" ,"fa fa-headphones" ,"fa fa-heart" ,"fa fa-heart-o" , "fa fa-heartbeat" ,"fa fa-history" ,"fa fa-home" ,"fa fa-hotel" ,"fa fa-hourglass" ,"fa fa-hourglass-1" ,"fa fa-hourglass-2" ,"fa fa-hourglass-3" ,"fa fa-hourglass-end" ,"fa fa-hourglass-half" ,"fa fa-hourglass-o" ,"fa fa-hourglass-start" ,"fa fa-i-cursor" ,"fa fa-id-badge" ,"fa fa-id-card" ,"fa fa-id-card-o" ,"fa fa-image" ,"fa fa-inbox" ,"fa fa-industry" ,"fa fa-info" ,"fa fa-info-circle" ,"fa fa-institution" ,"fa fa-key" ,"fa fa-keyboard-o" ,"fa fa-language" ,"fa fa-laptop" ,"fa fa-leaf" ,"fa fa-legal" ,"fa fa-lemon-o" ,"fa fa-level-down" ,"fa fa-level-up" ,"fa fa-life-bouy" ,"fa fa-life-buoy" ,"fa fa-life-ring" ,"fa fa-life-saver" , "fa fa-lightbulb-o" ,"fa fa-line-chart" ,"fa fa-location-arrow" ,"fa fa-lock" , "fa fa-low-vision" ,"fa fa-magic" ,"fa fa-magnet" ,"fa fa-mail-forward" ,"fa fa-mail-reply" ,"fa fa-mail-reply-all" ,"fa fa-male" ,"fa fa-map" ,"fa fa-map-marker" ,"fa fa-map-o" ,"fa fa-map-pin" ,"fa fa-map-signs" , "fa fa-meh-o" ,"fa fa-microchip" ,"fa fa-microphone" ,"fa fa-microphone-slash" ,"fa fa-minus" ,"fa fa-minus-circle" ,"fa fa-minus-square" ,"fa fa-minus-square-o" ,"fa fa-mobile" ,"fa fa-mobile-phone" ,"fa fa-money" ,"fa fa-moon-o" ,"fa fa-mortar-board" ,"fa fa-motorcycle" ,"fa fa-mouse-pointer" ,"fa fa-music" ,"fa fa-navicon" ,"fa fa-newspaper-o" ,"fa fa-object-group" ,"fa fa-object-ungroup" ,"fa fa-paint-brush" ,"fa fa-paper-plane" ,"fa fa-paper-plane-o" ,"fa fa-paw" ,"fa fa-pencil" ,"fa fa-pencil-square" , "fa fa-pencil-square-o" ,"fa fa-percent" ,"fa fa-phone" ,"fa fa-phone-square" ,"fa fa-photo" ,"fa fa-picture-o" ,"fa fa-pie-chart" ,"fa fa-plane" ,"fa fa-plug" ,"fa fa-plus" ,"fa fa-plus-circle" ,"fa fa-plus-square" ,"fa fa-plus-square-o" , "fa fa-podcast" , "fa fa-power-off" ,"fa fa-print" , "fa fa-puzzle-piece" ,"fa fa-qrcode" , "fa fa-question" ,"fa fa-question-circle" ,"fa fa-question-circle-o" ,"fa fa-quote-left" ,"fa fa-quote-right" ,"fa fa-random" ,"fa fa-recycle" , "fa fa-refresh" ,"fa fa-registered" ,"fa fa-remove" ,"fa fa-reorder" ,"fa fa-reply" ,"fa fa-reply-all" ,"fa fa-retweet" ,"fa fa-road" ,"fa fa-rocket" , "fa fa-rss" ,"fa fa-rss-square" ,"fa fa-s15" ,"fa fa-search" ,"fa fa-search-minus" ,"fa fa-search-plus" ,"fa fa-send" ,"fa fa-send-o" ,"fa fa-server" ,"fa fa-share" ,"fa fa-share-alt" ,"fa fa-share-alt-square" ,"fa fa-share-square" ,"fa fa-share-square-o" ,"fa fa-shield" ,"fa fa-ship" ,"fa fa-shopping-bag" ,"fa fa-shopping-basket" ,"fa fa-shopping-cart" , "fa fa-shower" ,"fa fa-sign-in" ,"fa fa-sign-language" ,"fa fa-sign-out" ,"fa fa-signal" ,"fa fa-signing" ,"fa fa-sitemap" ,"fa fa-sliders" ,"fa fa-smile-o" ,"fa fa-snowflake-o" ,"fa fa-soccer-ball-o" ,"fa fa-sort" , "fa fa-sort-alpha-asc" ,"fa fa-sort-alpha-desc" ,"fa fa-sort-amount-asc" ,"fa fa-sort-amount-desc" ,"fa fa-sort-asc" ,"fa fa-sort-desc" ,"fa fa-sort-down" , "fa fa-sort-numeric-asc" ,"fa fa-sort-numeric-desc" ,"fa fa-sort-up" ,"fa fa-space-shuttle" ,"fa fa-spinner" ,"fa fa-spoon" ,"fa fa-square" ,"fa fa-square-o" ,"fa fa-star" ,"fa fa-star-half" ,"fa fa-star-half-empty" ,"fa fa-star-half-full" ,"fa fa-star-half-o" ,"fa fa-star-o" ,"fa fa-sticky-note" ,"fa fa-sticky-note-o" , "fa fa-street-view" ,"fa fa-suitcase" ,"fa fa-sun-o" ,"fa fa-support" ,"fa fa-tablet" ,"fa fa-tachometer" ,"fa fa-tag" ,"fa fa-tags" , "fa fa-tasks" ,"fa fa-taxi" ,"fa fa-television" ,"fa fa-terminal" ,"fa fa-thermometer" ,"fa fa-thermometer-0" ,"fa fa-thermometer-1" , "fa fa-thermometer-2" ,"fa fa-thermometer-3" ,"fa fa-thermometer-4" ,"fa fa-thermometer-empty" ,"fa fa-thermometer-full" ,"fa fa-thermometer-half" ,"fa fa-thermometer-quarter" ,"fa fa-thermometer-three-quarters" ,"fa fa-thumb-tack" ,"fa fa-thumbs-down" , "fa fa-thumbs-o-down" ,"fa fa-thumbs-o-up" ,"fa fa-thumbs-up" ,"fa fa-ticket" ,"fa fa-times" ,"fa fa-times-circle" ,"fa fa-times-circle-o" ,"fa fa-times-rectangle" ,"fa fa-times-rectangle-o" ,"fa fa-tint" ,"fa fa-toggle-down" ,"fa fa-toggle-left" ,"fa fa-toggle-off" ,"fa fa-toggle-on" ,"fa fa-toggle-right" ,"fa fa-toggle-up" ,"fa fa-trademark" ,"fa fa-trash" ,"fa fa-trash-o" ,"fa fa-tree" ,"fa fa-trophy" ,"fa fa-truck" ,"fa fa-tty" ,"fa fa-tv" ,"fa fa-umbrella" ,"fa fa-universal-access" ,"fa fa-university" ,"fa fa-unlock" ,"fa fa-unlock-alt" ,"fa fa-unsorted" ,"fa fa-upload" ,"fa fa-user" ,"fa fa-user-circle" ,"fa fa-user-circle-o" ,"fa fa-user-o" ,"fa fa-user-plus" ,"fa fa-user-secret" ,"fa fa-user-times" ,"fa fa-users" ,"fa fa-vcard" ,"fa fa-vcard-o" ,"fa fa-video-camera" , "fa fa-volume-control-phone" ,"fa fa-volume-down" ,"fa fa-volume-off" ,"fa fa-volume-up" ,"fa fa-warning" ,"fa fa-wheelchair" ,"fa fa-wheelchair-alt" ,"fa fa-wifi" ,"fa fa-window-close" ,"fa fa-window-close-o" ,"fa fa-window-maximize" ,"fa fa-window-minimize" ,"fa fa-window-restore" ,"fa fa-wrench" ,"fa fa-download" ,"fa fa-drivers-license" ,"fa fa-drivers-license-o" ,"fa fa-edit" ,"fa fa-ellipsis-h" ,"fa fa-ellipsis-v" ,"fa fa-envelope" ,"fa fa-envelope-o" ,"fa fa-envelope-open" ,"fa fa-envelope-open-o" ,"fa fa-envelope-square" ,"fa fa-eraser" ,"fa fa-exchange" ,"fa fa-exclamation" ,"fa fa-exclamation-circle" ,"fa fa-exclamation-triangle" ,"fa fa-external-link" ,"fa fa-external-link-square" ,"fa fa-eye" ,"fa fa-eye-slash" ,"fa fa-eyedropper" , "fa fa-fax" ,"fa fa-feed" ,"fa fa-female" ,"fa fa-fighter-jet" ,"fa fa-file-archive-o" ,"fa fa-file-audio-o" ,"fa fa-file-code-o" ,"fa fa-file-excel-o" ,"fa fa-file-image-o" ,"fa fa-file-movie-o" ,"fa fa-file-pdf-o" ,"fa fa-file-photo-o" ,  
			 		]
		}else{
			source = [ " fa fa-address-book" ,"fa fa-address-book-o" ,"fa fa-address-card" ,"fa fa-address-card-o" ,"fa fa-adjust" ,"fa fa-american-sign-language-interpreting" ,"fa fa-anchor" , "fa fa-archive" ,"fa fa-area-chart" ,"fa fa-arrows" ,"fa fa-arrows-h" ,"fa fa-arrows-v" ,"fa fa-asl-interpreting" ,"fa fa-assistive-listening-systems" ,"fa fa-asterisk" ,"fa fa-at" ,"fa fa-audio-description" ,"fa fa-automobile" ,"fa fa-balance-scale" ,"fa fa-ban" ,"fa fa-bank" ,"fa fa-bar-chart" ,"fa fa-bar-chart-o" ,"fa fa-barcode" ,"fa fa-bars" ,"fa fa-bath" ,"fa fa-bathtub" ,"fa fa-battery" ,"fa fa-battery-0" ,"fa fa-battery-1" ,"fa fa-battery-2" ,"fa fa-battery-3" ,"fa fa-battery-4" ,"fa fa-battery-empty" ,"fa fa-battery-full" ,"fa fa-battery-half" ,"fa fa-battery-quarter" ,"fa fa-battery-three-quarters" ,"fa fa-bed" ,"fa fa-beer" ,"fa fa-bicycle" ,"fa fa-binoculars" ,"fa fa-birthday-cake" ,"fa fa-blind" ,"fa fa-bluetooth" , "fa fa-bluetooth-b" , "fa fa-bolt" ,"fa fa-bomb" , "fa fa-book" ,"fa fa-bookmark" ,"fa fa-bookmark-o" ,"fa fa-braille" ,"fa fa-briefcase" ,"fa fa-bug" ,"fa fa-building" ,"fa fa-building-o" ,"fa fa-bullhorn" ,"fa fa-bullseye" ,"fa fa-bus" ,"fa fa-cab" ,"fa fa-calculator" ,"fa fa-calendar" ,"fa fa-calendar-check-o" ,"fa fa-calendar-minus-o" ,"fa fa-calendar-o" ,"fa fa-calendar-plus-o" ,"fa fa-calendar-times-o" ,"fa fa-camera" ,"fa fa-camera-retro" ,"fa fa-car" ,"fa fa-caret-square-o-down" ,"fa fa-caret-square-o-left" ,"fa fa-caret-square-o-right" ,"fa fa-caret-square-o-up" ,"fa fa-cart-arrow-down" ,"fa fa-cart-plus" ,"fa fa-cc" ,"fa fa-certificate" ,"fa fa-check" ,"fa fa-check-circle" ,"fa fa-check-circle-o" ,"fa fa-check-square" ,"fa fa-check-square-o" ,"fa fa-child" , "fa fa-circle" ,"fa fa-circle-o" ,"fa fa-circle-o-notch" , "fa fa-circle-thin" ,"fa fa-clock-o" ,"fa fa-clone" ,"fa fa-close" ,"fa fa-cloud" ,"fa fa-cloud-download" ,"fa fa-cloud-upload" ,"fa fa-code" ,"fa fa-code-fork" ,"fa fa-coffee" ,"fa fa-cog" ,"fa fa-cogs" ,"fa fa-comment" ,"fa fa-comment-o" ,"fa fa-commenting" ,"fa fa-commenting-o" ,"fa fa-comments" ,"fa fa-comments-o" ,"fa fa-compass" ,"fa fa-copyright" ,"fa fa-creative-commons" ,"fa fa-credit-card" ,"fa fa-credit-card-alt" ,"fa fa-crop" ,"fa fa-crosshairs" , "fa fa-cube" ,"fa fa-cubes" ,"fa fa-cutlery" ,"fa fa-dashboard" ,"fa fa-database" ,"fa fa-deaf" ,"fa fa-deafness" ,"fa fa-desktop" ,"fa fa-diamond" ,"fa fa-dot-circle-o" , "fa fa-file-picture-o" ,"fa fa-file-powerpoint-o" ,"fa fa-file-sound-o" ,"fa fa-file-video-o" ,"fa fa-file-word-o" , "fa fa-file-zip-o" ,"fa fa-film" ,"fa fa-filter" ,"fa fa-fire" ,"fa fa-fire-extinguisher" ,"fa fa-flag" ,"fa fa-flag-checkered" ,"fa fa-flag-o" ,"fa fa-flash" ,"fa fa-flask" ,"fa fa-folder" ,"fa fa-folder-o" ,"fa fa-folder-open" ,"fa fa-folder-open-o" ,"fa fa-frown-o" ,"fa fa-futbol-o" ,"fa fa-gamepad" ,"fa fa-gavel" ,"fa fa-gear" ,"fa fa-gears" ,"fa fa-gift" ,"fa fa-glass" ,"fa fa-globe" ,"fa fa-graduation-cap" ,"fa fa-group" ,"fa fa-hand-grab-o" ,"fa fa-hand-lizard-o" ,"fa fa-hand-paper-o" ,"fa fa-hand-peace-o" ,"fa fa-hand-pointer-o" ,"fa fa-hand-rock-o" ,"fa fa-hand-scissors-o" ,"fa fa-hand-spock-o" ,  "fa fa-hand-stop-o" ,"fa fa-handshake-o" ,"fa fa-hard-of-hearing" ,"fa fa-hashtag" ,"fa fa-hdd-o" ,"fa fa-headphones" ,"fa fa-heart" ,"fa fa-heart-o" , "fa fa-heartbeat" ,"fa fa-history" ,"fa fa-home" ,"fa fa-hotel" ,"fa fa-hourglass" ,"fa fa-hourglass-1" ,"fa fa-hourglass-2" ,"fa fa-hourglass-3" ,"fa fa-hourglass-end" ,"fa fa-hourglass-half" ,"fa fa-hourglass-o" ,"fa fa-hourglass-start" ,"fa fa-i-cursor" ,"fa fa-id-badge" ,"fa fa-id-card" ,"fa fa-id-card-o" ,"fa fa-image" ,"fa fa-inbox" ,"fa fa-industry" ,"fa fa-info" ,"fa fa-info-circle" ,"fa fa-institution" ,"fa fa-key" ,"fa fa-keyboard-o" ,"fa fa-language" ,"fa fa-laptop" ,"fa fa-leaf" ,"fa fa-legal" ,"fa fa-lemon-o" ,"fa fa-level-down" ,"fa fa-level-up" ,"fa fa-life-bouy" ,"fa fa-life-buoy" ,"fa fa-life-ring" ,"fa fa-life-saver" , "fa fa-lightbulb-o" ,"fa fa-line-chart" ,"fa fa-location-arrow" ,"fa fa-lock" , "fa fa-low-vision" ,"fa fa-magic" ,"fa fa-magnet" ,"fa fa-mail-forward" ,"fa fa-mail-reply" ,"fa fa-mail-reply-all" ,"fa fa-male" ,"fa fa-map" ,"fa fa-map-marker" ,"fa fa-map-o" ,"fa fa-map-pin" ,"fa fa-map-signs" , "fa fa-meh-o" ,"fa fa-microchip" ,"fa fa-microphone" ,"fa fa-microphone-slash" ,"fa fa-minus" ,"fa fa-minus-circle" ,"fa fa-minus-square" ,"fa fa-minus-square-o" ,"fa fa-mobile" ,"fa fa-mobile-phone" ,"fa fa-money" ,"fa fa-moon-o" ,"fa fa-mortar-board" ,"fa fa-motorcycle" ,"fa fa-mouse-pointer" ,"fa fa-music" ,"fa fa-navicon" ,"fa fa-newspaper-o" ,"fa fa-object-group" ,"fa fa-object-ungroup" ,"fa fa-paint-brush" ,"fa fa-paper-plane" ,"fa fa-paper-plane-o" ,"fa fa-paw" ,"fa fa-pencil" ,"fa fa-pencil-square" , "fa fa-pencil-square-o" ,"fa fa-percent" ,"fa fa-phone" ,"fa fa-phone-square" ,"fa fa-photo" ,"fa fa-picture-o" ,"fa fa-pie-chart" ,"fa fa-plane" ,"fa fa-plug" ,"fa fa-plus" ,"fa fa-plus-circle" ,"fa fa-plus-square" ,"fa fa-plus-square-o" , "fa fa-podcast" , "fa fa-power-off" ,"fa fa-print" , "fa fa-puzzle-piece" ,"fa fa-qrcode" , "fa fa-question" ,"fa fa-question-circle" ,"fa fa-question-circle-o" ,"fa fa-quote-left" ,"fa fa-quote-right" ,"fa fa-random" ,"fa fa-recycle" , "fa fa-refresh" ,"fa fa-registered" ,"fa fa-remove" ,"fa fa-reorder" ,"fa fa-reply" ,"fa fa-reply-all" ,"fa fa-retweet" ,"fa fa-road" ,"fa fa-rocket" , "fa fa-rss" ,"fa fa-rss-square" ,"fa fa-s15" ,"fa fa-search" ,"fa fa-search-minus" ,"fa fa-search-plus" ,"fa fa-send" ,"fa fa-send-o" ,"fa fa-server" ,"fa fa-share" ,"fa fa-share-alt" ,"fa fa-share-alt-square" ,"fa fa-share-square" ,"fa fa-share-square-o" ,"fa fa-shield" ,"fa fa-ship" ,"fa fa-shopping-bag" ,"fa fa-shopping-basket" ,"fa fa-shopping-cart" , "fa fa-shower" ,"fa fa-sign-in" ,"fa fa-sign-language" ,"fa fa-sign-out" ,"fa fa-signal" ,"fa fa-signing" ,"fa fa-sitemap" ,"fa fa-sliders" ,"fa fa-smile-o" ,"fa fa-snowflake-o" ,"fa fa-soccer-ball-o" ,"fa fa-sort" , "fa fa-sort-alpha-asc" ,"fa fa-sort-alpha-desc" ,"fa fa-sort-amount-asc" ,"fa fa-sort-amount-desc" ,"fa fa-sort-asc" ,"fa fa-sort-desc" ,"fa fa-sort-down" , "fa fa-sort-numeric-asc" ,"fa fa-sort-numeric-desc" ,"fa fa-sort-up" ,"fa fa-space-shuttle" ,"fa fa-spinner" ,"fa fa-spoon" ,"fa fa-square" ,"fa fa-square-o" ,"fa fa-star" ,"fa fa-star-half" ,"fa fa-star-half-empty" ,"fa fa-star-half-full" ,"fa fa-star-half-o" ,"fa fa-star-o" ,"fa fa-sticky-note" ,"fa fa-sticky-note-o" , "fa fa-street-view" ,"fa fa-suitcase" ,"fa fa-sun-o" ,"fa fa-support" ,"fa fa-tablet" ,"fa fa-tachometer" ,"fa fa-tag" ,"fa fa-tags" , "fa fa-tasks" ,"fa fa-taxi" ,"fa fa-television" ,"fa fa-terminal" ,"fa fa-thermometer" ,"fa fa-thermometer-0" ,"fa fa-thermometer-1" , "fa fa-thermometer-2" ,"fa fa-thermometer-3" ,"fa fa-thermometer-4" ,"fa fa-thermometer-empty" ,"fa fa-thermometer-full" ,"fa fa-thermometer-half" ,"fa fa-thermometer-quarter" ,"fa fa-thermometer-three-quarters" ,"fa fa-thumb-tack" ,"fa fa-thumbs-down" , "fa fa-thumbs-o-down" ,"fa fa-thumbs-o-up" ,"fa fa-thumbs-up" ,"fa fa-ticket" ,"fa fa-times" ,"fa fa-times-circle" ,"fa fa-times-circle-o" ,"fa fa-times-rectangle" ,"fa fa-times-rectangle-o" ,"fa fa-tint" ,"fa fa-toggle-down" ,"fa fa-toggle-left" ,"fa fa-toggle-off" ,"fa fa-toggle-on" ,"fa fa-toggle-right" ,"fa fa-toggle-up" ,"fa fa-trademark" ,"fa fa-trash" ,"fa fa-trash-o" ,"fa fa-tree" ,"fa fa-trophy" ,"fa fa-truck" ,"fa fa-tty" ,"fa fa-tv" ,"fa fa-umbrella" ,"fa fa-universal-access" ,"fa fa-university" ,"fa fa-unlock" ,"fa fa-unlock-alt" ,"fa fa-unsorted" ,"fa fa-upload" ,"fa fa-user" ,"fa fa-user-circle" ,"fa fa-user-circle-o" ,"fa fa-user-o" ,"fa fa-user-plus" ,"fa fa-user-secret" ,"fa fa-user-times" ,"fa fa-users" ,"fa fa-vcard" ,"fa fa-vcard-o" ,"fa fa-video-camera" , "fa fa-volume-control-phone" ,"fa fa-volume-down" ,"fa fa-volume-off" ,"fa fa-volume-up" ,"fa fa-warning" ,"fa fa-wheelchair" ,"fa fa-wheelchair-alt" ,"fa fa-wifi" ,"fa fa-window-close" ,"fa fa-window-close-o" ,"fa fa-window-maximize" ,"fa fa-window-minimize" ,"fa fa-window-restore" ,"fa fa-wrench" ,"fa fa-download" ,"fa fa-drivers-license" ,"fa fa-drivers-license-o" ,"fa fa-edit" ,"fa fa-ellipsis-h" ,"fa fa-ellipsis-v" ,"fa fa-envelope" ,"fa fa-envelope-o" ,"fa fa-envelope-open" ,"fa fa-envelope-open-o" ,"fa fa-envelope-square" ,"fa fa-eraser" ,"fa fa-exchange" ,"fa fa-exclamation" ,"fa fa-exclamation-circle" ,"fa fa-exclamation-triangle" ,"fa fa-external-link" ,"fa fa-external-link-square" ,"fa fa-eye" ,"fa fa-eye-slash" ,"fa fa-eyedropper" , "fa fa-fax" ,"fa fa-feed" ,"fa fa-female" ,"fa fa-fighter-jet" ,"fa fa-file-archive-o" ,"fa fa-file-audio-o" ,"fa fa-file-code-o" ,"fa fa-file-excel-o" ,"fa fa-file-image-o" ,"fa fa-file-movie-o" ,"fa fa-file-pdf-o" ,"fa fa-file-photo-o" ,  
				]
		}
		$('#myselect').fontIconPicker({
		                input:'#icon',
		                theme: 'fip-bootstrap',//四种主题风格：fip-grey, fip-darkgrey, fip-bootstrap, fip-inverted
		                source: source,
		                emptyIcon: false,//是否显示空
		                emptyIconValue: "none",//空值
		                iconsPerPage: 60, //每页显示图标的个数，默认20
		                hasSearch: true,//是否显示试试框，默认true

        }); 
        
        $(".submit").click(function () {
        	var jsonData = {
        		'id' : $("#id").val(),
        		'pid' : $("select[name='pid']").val(),
        		'title' : $("#title").val(),
        		'name' : $("#name").val(),
        		'icon' : $("#icon").val(),
        		'islink' : $("input[name='islink']:checked").val(),
        		'o' : $("#o").val(),
        		'tips' : editor.html(),
        	}
        	console.log(jsonData)
        	$.ajax({
    			type: "post",
    			url: "{:url('Menu/update')}",
    			dataType: 'JSON',
    			data: jsonData,
    			error: function () {
    				return false;
    			},
    			success: function (data) {
    				bootbox.alert({  
                        buttons: {  
                           ok: {label: '确定',className: 'btn-danger'}  
                        },  
                        message: data.message,
                        callback: function() {  
                          	location.reload(); 
                        },  
                        title: "系统提示",  
                    });
    			}
    		});
        	
        })

    })
</script>

</body>
</html>
